package com.guigu.tms.driver.controller;

import com.guigu.tms.commons.aggregation.entity.Order;
import com.guigu.tms.commons.aggregation.entity.OrderClassifyOrder;
import com.guigu.tms.commons.aggregation.feign.OrderClassifyOrderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/orderClassifyOrder")
public class OrderClassifyOrderController {

    @Autowired
    OrderClassifyOrderFeign orderClassifyOrderFeign;

    @GetMapping("/ShowOrderClassifyOrder")
    public List<OrderClassifyOrder> ShowOrderClassifyOrder(@RequestParam String tripsId,@RequestParam String end){
        //System.out.println("end---------"+end);
        return orderClassifyOrderFeign.ShowOrderClassifyOrder(tripsId,end);
    }
}
